package edu.zut.hb.software.train.StationSizeManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.StationSize.dao.StationSizeDao;
import edu.zut.hb.software.train.StationSize.domain.StationSize;
import edu.zut.hb.software.train.StationSizeManager.service.StationSizeManger;




@Service("stationSizeManger")
public class StationSizeMangerImpl extends GenericManagerImpl<StationSize, Long> implements StationSizeManger {

	
	StationSizeDao stationSizeDao;
	
	@Autowired
	public void setOrderDao(StationSizeDao stationSizeDao) {
		this.stationSizeDao = stationSizeDao;
		this.dao = this.stationSizeDao;
	}

	@Override
	public List<StationSize> getAll() {
		List<StationSize> all = this.stationSizeDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<StationSize> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}